//
//  UIColor+Extension.swift
//  SinaWeibo
//
//  Created by 林柱强 on 16/2/3.
//  Copyright © 2016年 林柱强. All rights reserved.
//

import UIKit

extension UIColor {
    class func randomColor() -> UIColor {
        let red: CGFloat = CGFloat(random() % 255) / 255.0
        let green: CGFloat = CGFloat(random() % 255) / 255.0
        let blue: CGFloat = CGFloat(random() % 255) / 255.0
        return UIColor(red: red, green: green, blue: blue, alpha: 1.0)
    }
}
